#!/usr/bin/env python3
# -*- coding: utf-8 -*-

"""
多格式视频转换工具 - 主程序入口
"""

import sys
import logging
from webm_to_mp4_gui import VideoConverterGUI

# 配置日志
logging.basicConfig(
    level=logging.INFO,
    format='%(asctime)s - %(levelname)s - %(message)s'
)
logger = logging.getLogger(__name__)

def main():
    """主程序入口"""
    try:
        app = VideoConverterGUI()
        app.mainloop()
    except Exception as e:
        logger.exception("程序运行出错")
        sys.exit(1)

if __name__ == "__main__":
    main() 